<!doctype html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>订单详情</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/base.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/detail.css" />
</head>
<body>
<div class="detail">
    <div class="state">
        <!--待收货-->
        <if condition="$copy['state'] eq 2">
            <div class="inner">
                <h2>待收货</h2>
                <span><img src="__PUBLIC__/Wx/img/icon06.png"/></span>
            </div>
        </if>
        <!--待通知-->
        <if condition="$copy['state'] eq 3">
            <div class="inner">
                <h2>待通知</h2>
                <span><img src="__PUBLIC__/Wx/img/icon20.png"/></span>
            </div>
        </if>
        <!--待核销-->
        <if condition="$myorder['state'] eq 6">
            <div class="inner">
                <h2>待核销</h2>
                <span><img src="__PUBLIC__/Wx/img/icon21.png"/></span>
            </div>
        </if>
        <!--已核销-->
        <if condition="$myorder['state'] eq 2">
            <div class="inner">
                <h2>已核销</h2>
                <span><img src="__PUBLIC__/Wx/img/icon22.png"/></span>
            </div>
        </if>
    </div>
    <div class="prolist">
        <div class="pro">
            <div class="pic"><img src="__PUBLIC__/Wx/images/pic13.jpg"/></div>
            <div class="name">
                <h2><b class="xc">乡村</b>{$group.title}</h2>
                <!--待收货，待通知-->
                <if condition="$copy['state'] eq 2 or $copy['state'] eq 3">
                    <p><span><b>{$copy.num}</b>份</span><span style="float:right">共<b><?=$group['u_num']*$copy['num']?></b><?=getunit($group['unit'])?></span></p>
                </if>
                <!--待核销-->
                <if condition="$myorder['state'] eq 6">
                    <p><span><b><?=$copy['num']-$copy['sum']?></b>份待核销</span><span style="float:right">共<b><?=$group['u_num']*($copy['num']-$copy['sum'])?></b><?=getunit($group['unit'])?></span></p>
                </if>
                <!--已核销-->
                <if condition="$myorder['state'] eq 2">
                    <p><span><b>{$copy.sum}</b>份已核销</span><span style="float:right">共<b><?=$group['u_num']*$copy['sum']?></b><?=getunit($group['unit'])?></span></p>
                </if>
            </div>
        </div>
    </div>
    <!--待收货，待通知-->
    <if condition="$copy['state'] eq 2 or $copy['state'] eq 3">
        <div class="people">
            <h2>已订购<span>{$sum_num}</span>份</h2>
            <div class="list">
                <ul>
                    <volist name="member" id="vo">
                        <li>
                            <div class="pic"><img src="{$vo.member.avatar}"/></div><h3>{$vo.member.nickname}</h3><b>{$vo.member.hometown}</b>
                        </li>
                    </volist>
                    <!--<li>-->
                    <!--<div class="pic"><img src="images/pic08.jpg"/></div><h3>李晓慧</h3><b>安阳</b>-->
                    <!--</li>-->
                </ul>
            </div>
        </div>
    </if>
    <!--待核销,已核销-->
    <if condition="$copy['state'] eq 4">
        <div class="people">
            <h2>已核销<span>{$copy.sum}</span>份，还差<span>{$copy['num']-$copy['sum']}</span>份未核销</h2>
            <div class="list">
                <ul>
                    <volist name="member" id="vo">
                        <li>
                            <div class="pic"><img src="{$vo.member.avatar}"/></div><h3>{$vo.member.nickname}</h3>
                            <eq name="vo['state']" value="6"><b>未核销</b></eq>
                            <eq name="vo['state']" value="2"><b  class="ed">已核销</b></eq>
                        </li>
                    </volist>
                    <!--<li>-->
                    <!--<div class="pic"><img src="__PUBLIC__/Wx/images/pic08.jpg"/></div><h3>李晓慧</h3><b class="ed">已核销</b>-->
                    <!--</li>-->
                </ul>
            </div>
        </div>
    </if>
    <!--<div class="people" style="display:none;">-->
    <!--<h2>已核销<span>10</span>人次，还差<span>0</span>人未核销</h2>-->
    <!--<div class="list">-->
    <!--<ul>-->
    <!--<li>-->
    <!--<div class="pic"><img src="__PUBLIC__/Wx/images/pic08.jpg"/></div><h3>李晓慧</h3><b class="ed">已核销</b>-->
    <!--</li>-->
    <!--</ul>-->
    <!--</div>-->
    <!--</div>-->
    <!--待收货-->
    <if condition="$copy['state'] eq 2">
        <div class="button"><input type="submit" value="确认收货"/></div>
    </if>
    <!--待通知-->
    <if condition="$copy['state'] eq 3">
        <div class="button"><input type="submit" value="发送到货通知"/></div>
    </if>
</div>
<script  src="__PUBLIC__/Wx/js/jquery-1.3.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
    (function($){
        $(function(){
            var $Width = $('.people .list ul').width()/5.3;
            var len = $(".people .list ul li").length;
            //	alert(len);
            $('.people .list ul li').css({'width':$Width});
            $('.people .list ul').css({'width':$Width*len});
        })
    })(jQuery)
</script>
</body>
</html>